Part Number Hot Search : 
SDM10K45 A7303 KSH122I THN5601B 74HC4050 TLE4263 NNCD24DA BG103
Product Description
Full Text Search
 

To Download LCD2041-IY Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  lcd0821 technical manual revision: 2.1
contents contents ii 1 getting started 1 1.1 display options available . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.2 accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.4 connecting to a pc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.5 installing the software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 1.5.1 uproject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 hardware information 6 2.1 power/data connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2 rs-232 header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.3 manual override . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.4 general purpose output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.5 protocol select jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 troubleshooting 10 3.1 the display does not turn on when power is applied. . . . . . . . . . . . . . . . . . . . . . . 10 3.2 the display module is not communicating. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.3 the display module is communicating, however text canno t be displayed. . . . . . . . . . . 11 4 communications 11 4.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.1.1 i 2 c communication summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 4.1.2 i 2 c transaction example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4.1.3 serial communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 changing the i 2 c slave address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.3 changing the baud rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.4 setting a non-standard baud rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 5 text 15 5.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.1.1 character set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.1.2 control characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 5.2 auto scroll on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.3 auto scroll off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.4 clear screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.5 changing the startup screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 5.6 set auto line wrap on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.7 set auto line wrap off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.8 set cursor position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 5.9 go home . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.10 move cursor back . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 matrix orbital lcd0821 ii
5.11 move cursor forward . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 5.12 underline cursor on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.13 underline cursor off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.14 blinking block cursor on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 5.15 blinking block cursor off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 6 special characters 22 6.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.2 creating a custom character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 6.3 saving custom characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 6.4 loading custom characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 6.5 save startup screen custom characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 6.6 initialize medium number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6.7 place medium numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 6.8 initialize horizontal bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.9 place horizontal bar graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.10 initialize narrow vertical bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6.11 initialize wide vertical bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 6.12 place vertical bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7 general purpose output 28 7.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.2 general purpose output off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.3 general purpose output on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.4 set startup gpo state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 8 display functions 29 8.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 8.2 display on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 8.3 display off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 8.4 set brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 8.5 set and save brightness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 8.6 set contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 8.7 set and save contrast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 9 data security 32 9.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9.2 set remember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9.3 data lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 9.4 set and save data lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 9.5 write customer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.6 read customer data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 10 miscellaneous 35 10.1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 10.2 read version number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 10.3 read module type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 matrix orbital lcd0821 iii
11 command summary 38 11.1 communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 11.2 text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 11.3 special characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 11.4 general purpose output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 11.5 display functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 11.6 data security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 11.7 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 11.8 command by number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 12 appendix 43 12.1 speci?cations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 12.1.1 environmental . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 12.1.2 electrical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 12.1.3 optical . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 12.2 physical layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 12.3 ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 12.4 de?nitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 12.5 contacting matrix orbital . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 12.6 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 matrix orbital lcd0821 iv
1 getting started figure 1: lcd0821 the lcd0821 is an intelligent lcd display designed to decrea se development time by providing an instant solution to any project. with the ability to communi cate via serial rs-232/ttl and i 2 c protocols, the versatile lcd0821 can be used with virtually any control ler. the ease of use is further enhanced by an intuitive command structure to allow display settings such as backlight brightness, contrast and baud rate to be software controlled. additionally, up to forty custom characters such as character sets for bar graphs, medium and large numbers may be stored in the non-volatile me mory to be easily recalled and displayed at any time. 1.1 display options available the lcd0821 comes in a wide variety of colors including the st andard yellow/green or inverse yellow, the popular blue/white and the crisp white/grey as well as in verse red which is excellent for viewing at night. extended voltage, and temperature options are also availab le, to allow you to select the display which will best ?t your project needs. matrix orbital lcd0821 1
figure 2: lcd0821 options 1.2 accessories note matrix orbital provides all the interface accessories need ed to get your display up and running. you will ?nd these accessories and others on o ur e-commerce website at http://www.matrixorbital.com. to contact a sales associa te see section 12.5 on page 47 for contact information. figure 3: 5v power cable adapter figure 4: 12v power cable adapter (v/vpt models) matrix orbital lcd0821 2
figure 5: breadboard cable figure 6: serial cable 4ft figure 7: communication and 5v power cable 1.3 features ? 8 column by 2 line alphanumeric liquid crystal display ? selectable communication protocol, serial at rs-232 or ttl levels or i 2 c ? one, 5v -20ma, general purpose output for a variety of applic ations ? lightning fast communication speeds, up to 57.6 kbps for rs- 232 and 100 kbps for i 2 c ? extended temperature available for extreme environments o f -20c to 70c ? extended voltage power supply available ? built in font with provision for up to 8 user de?ned character s ? up to 127 modules addressable on the same 2 wire i 2 c interface ? ability to add a customized splash / startup screen ? software controlled contrast and brightness with con?gura ble time-out setting up to 90 minutes ? horizontal or vertical bar graphs matrix orbital lcd0821 3
1.4 connecting to a pc the lcd0821 connects seamlessly to a pc and it is an excellent means of testing the functionality. to connect your display to a pc, you will require a standard rs-2 32 9-pin serial cable such as the one pictured in ?gure 6 on the previous page , as well as a modi?ed 5v power adapter such as the one pictured in ?gure 3 on page 2 . in order to connect your display to a personal computer follo w these easy instructions: 1. plug the serial cable into the com port you wish to use. 2. connect the modi?ed 5v power adapter to a power lead from yo ur pc power supply (you will have to open your computer case). 3. connect the serial cable to the db-9 connector on the back o f the display. 4. connect the 5v power adapter to the 4-pin connector on the b ack of the display. warning do not use the standard ?oppy drive power connector, as this will not provide you with the correct voltage and will damage the display module. figure 8: pc vs matrix orbital display module wiring matrix orbital lcd0821 4
1.5 installing the software 1.5.1 uproject uproject was designed by matrix orbital to provide a simple a nd easy to use interface that will allow you to test all of the features of our alpha numeric displays. to install uproject from the matrix orbital cd, follow the fo llowing steps: 1. insert the matrix orbital cd-rom into the cd drive 2. locate the ?le, uproject.exe , which should be in the cd-drive:\download directory. 3. copy uproject.exe to a directory that you wish to run it from. 4. double click on "uproject.exe" be sure to check the information selected in the com setup the ?rst time uproject is run. once this infor- mation is entered correctly the program can be used to contro l all functions of the graphic display. comport the serial port the display is plugged in to. baudrate the communication speed the display module is set to. (default 19,200) figure 9: uproject settings notes ? uproject and other alphanumeric software may also be downlo aded from matrix or- bital's support site at http://www.matrixorbital.ca/sof tware/software_alpha/ matrix orbital lcd0821 5
2 hardware information refer to the following diagram for this chapter: 1 gpo 4 rs-232 header 2 power / data connector 5 protocol select jumpers 3 manual override figure 10: lcd0821 2.1 power/data connector the power/data connector provides a standard connector for powering the display modu le. the lcd0821 requires ?ve volts for the standard display module and betwe en nine and ?fteen for the wide voltage (v) model. the voltage is applied through pins one and four of the four pin power/data connector . pins two and three are reserved for serial transmission, using eithe r the rs-232/ttl or the i 2 c protocol, depending on what has been selected by the protocol select jumpers . pins two and three may be reversed by changing the legacy connector jumpers in order to be compatible with previous pcb revisions. pin 1 pwr (see table 1 on the next page) pin 2 rx \ scl (i 2 c clock) pin 3 tx \ sda (i 2 c data) pin 4 gnd figure 11: power connector and pin out matrix orbital lcd0821 6
table 1: power requirements standard -v supply voltage +5vdc 0.25v +9v to +15v backlight on supply 105 ma typical backlight off supply 30 ma warnings ? do not apply any power with reversed polarization. ? do not apply any voltage other than the speci?ed voltage. 2.2 rs-232 header the rs-232 header provides an alternate serial transmission connector. pin 1 gnd pin 2 rx pin 3 pwr (see table 1) figure 12: power connector and pin out note this header is for rs-232 transmission only. 2.3 manual override the manual override is provided to allow the lcd0821 to be reset to factory defaul ts. this can be particularly helpful if the display module has been set to an unknown baud rate or i 2 c slave address and you are no longer able to communicate with it. if you wish to re turn the module to its default settings you must: 1. power off the display module. 2. place a jumper on the manual override pins. 3. power up the display module. 4. the display module is now set to its default values listed b elow in table 2 . 5. edit and save settings. matrix orbital lcd0821 7
figure 13: manual override jumper table 2: default values brightness 255 baud rate 19.2 kbps i 2 c slave address 0x50 data lock false rs232autotransmitdata true note the display module will revert back to the old settings once t urned off, unless the settings are saved. 2.4 general purpose output a unique feature of the lcd0821 is the ability to control rela ys and other external devices using a general purpose output , which can provide up to 20 ma of current and +5vdc from the pos itive side of the gpo. this is limited by a 240 ohm resistor as pictured belo w in ?gure 14 . if the device, which is being driven by a gpo, requires a relatively high current (such as a relay) and has an internal resistance of its own greater than 250 ohms, then the 240 ohm resistor may be remove d and replaced with a jumper. matrix orbital lcd0821 8
- gnd + max: 20 ma, +5vdc figure 14: general purpose output warning if connecting a relay, be sure that it is fully clamped using a diode and capacitor in order to absorb any electro-motive f orce (emf) which will be generated. 2.5 protocol select jumpers the protocol select jumpers , pictured below in ?gure 15 , provide the means necessary to toggle the display module between rs-232, ttl, and i 2 c protocols. as a default, the jumpers are set to rs-232 mode with solder jumps on the 232 jumpers. in order to place the dis play module in i 2 c mode you must ?rst remove the solder jumps from the 232 jumpers and then place th em on the i2c jumpers. the display will now be in i 2 c mode and have a default slave address of 0x50 unless it has be en changed. similarly, in order to change the display to ttl mode, simply remove the zero ohm r esistors from the 232 or i 2 c jumpers and solder them to the ttl jumpers. matrix orbital lcd0821 9
figure 15: protocol select jumpers 3 troubleshooting 3.1 the display does not turn on when power is applied. ? first, you will want to make sure that you are using the correc t power connector. standard ?oppy drive power cables from your pc power supply may ?t on the powe r/data connector however they do not have the correct pin out as can be seen in ?gure 8 on page 4 . matrix orbital supplies power cable adapters for connecting to a pc, which can be found in the accessories section on page 2 . ? the next step is to check the power cable which you are using fo r continuity. if you don't have an ohm meter, try using a different power cable, if this does not help try using a different power supply. ? the last step will be to check the power / data connector on the lcd0821. if the power / data connector has become loose, or you are unable to resolve the issue, plea se contact matrix orbital, see 12.5 on page 47 for contact information. 3.2 the display module is not communicating. ? first, check the communication cable for continuity. if you don't have an ohm meter, try using a different communication cable. if you are using a pc try usin g a different com port. ? second, please ensure that the display module is set to commu nicate on the protocol that you are using, by checking the protocol select jumpers. to change the protocol used by the display module see section 2.5 on the preceding page . ? third, ensure that the host system and display module are bot h communicating on the same baud rate. the default baud rate for the display module is 19200 bps. matrix orbital lcd0821 10
? if you are communicating to the display via i 2 c please ensure that the data is being sent to the correct address. the default slave address for the display module is 0x50. note i 2 c communication will always require pull up resistors. ? finally, you may reset the display to it's default settings u sing the manual override jumper , see section 2.3 on page 7 . 3.3 the display module is communicating, however text canno t be displayed. ? a common cause may be that the contrast settings have been set to low. the solution to this problem is to adjust the contrast settings. the default setting that will work in most environments is 128. note optimal contrast settings may vary according to factors suc h as temperature, view- ing angle and lighting conditions. if you are unable to resolve any issue please contact matrix o rbital. see 12.5 on page 47 for contact information. 4 communications 4.1 introduction the commands listed in this chapter describe how to con?gure data ?ow on the lcd0821. 4.1.1 i 2 c communication summary the lcd0821 is capable of communicating at 100 khz in i 2 c mode, with 127 units addressable on a single i 2 c communication line. however, in order to communicate via i 2 c you must ?rst ensure that pull up resistors, with a nominal value of 1k to 10k, are placed on the scl and sda communication lines coming from pins two and three of the data / power connector respecti vely. data responses by the module are automatically output via rs232, in case the host will be quer ying the module, it is necessary for the host to inform the module that its responses are to be output via i 2 c. this can be done by sending command 254 /160 / 0 to turn off auto transmission of data in rs232. thi s will keep the data in the buffer until the master clocks a read of the slave. the i 2 c data lines operate at 5v normally or 3.3v for -1u style units . the lcd0821 uses 8-bit addressing, with the 8th or least signi?c ant bit (lsb) bit designated as the read/write bit, a 0 designates a write address and a 1 designates a read ad dress. the default read address of the display module will be 0x51, whereas the write address is 0x50 by defa ult. this address may be changed by using cmd 254 / 51 /
. the lcd0821 should only be sent addre sses that are even (lsb is 0). when the i 2 c master wishes to write to the display, the effective addres s is $50 (0101 0000) , since the lsb has to be matrix orbital lcd0821 11
0 for an i 2 c master write. when the i 2 c master wishes to read the lcd0821, the effective address is $51 (0101 0001), since the lsb has to be 1 for an i 2 c master read. if we take a standard phillips 7 bit address of $45 (100 0101), matrix orbital's lcd0821 would describe this phillips i 2 c address as $8a (1000 1010). the read address would be $8b (10 00 1011). the unit does not respond to general call address ($00). when communicating in i 2 c the lcd0821 will send an ack on the 9th clock cycle when addre ssed. when writing to the display module, the display will respond with a ack when the write has successfully been completed. however if the buffer has been ?lled, or the m odule is too busy processing data it will respond with a nak. when performing a multiple byte read with in one i 2 c transaction, each byte read from the slave should be followed by an ack to indicate that the mas ter still needs data, and a nak to indicate that the transmission is over. the lcd0821 has some speed limitations, especially when run in i 2 c mode. here are some considera- tions when writing i 2 c code: * to be able to read the replies of query commands (eg. cmds 54, 55) the following command must be sent (only needs to be sent once, so this can be done somewhere in init): 254 / 160 / 0 this command puts the reply data in the i 2 c output buffer instead of the rs232 output buffer. please no te that due to a 16 byte output buffer, query commands that reply with more than 16 by tes cannot be read (eg cmd get filesystem directory) * 3ms delay between the read commands * 625us delay in between data bytes within a transaction is ne cessary * 375us between transactions is necessary note these delays are consrevative, and may be decreased based on performance 4.1.2 i 2 c transaction example the typical i 2 c transaction contains four parts: the start sequence, addr essing, information, and stop sequence. to begin a transaction the data line, sda, must tog gle from high to low while the clock line, scl, is high. next, the display must be addressed using a one byte h exadecimal value, the default to write to the unit is 0x50, while read is 0x51. then information can be sent to the unit; even when reading, a command must ?rst be sent to let the unit know what type of information it is required to return. after each bit is sent, the display will issue an ack or nack as described above. fina lly, when communication is complete, the transaction is ended by toggling the data line from low to hig h while the clock line is high. an example of the use of this algorithm to write a simple hello message ca n be seen in 3. table 3: i 2 c transaction algorithm start toggle sda high to low address 0x50 information 0x48 0x45 0x4c 0x4c 0x4f stop toggle sda low to high matrix orbital lcd0821 12
4.1.3 serial communication in addition to being able to communicate via i 2 c the lcd0821 communicates natively through the rs-232 protocol at at a default baud rate of 19,200 bps and is c apable of standard baud rates from 9600 to 115,200 bps. furthermore the lcd0821 is also capable of re producing any non-standard baud rate in between using values entered into our baud rate generation a lgorithm and set through command 164 (0xa4). the display module communicates at standard voltage levels of -30v to +30v or at ttl levels of 0 to +5v by setting the protocol select jumpers to ttl. 4.2 changing the i 2 c slave address syntax hexadecimal 0xfe 0x33 [adr] decimal 254 51 [adr] ascii 254 3 [adr] parameters parameter length description adr 1 the new i 2 c write address (0x00 - 0xff). description this command sets the i 2 c write address of the module between 0x00 and 0xff. the i 2 c write address must be an even number and the read address is automatically set to one higher. for example if th e i 2 c write address is set to 0x50, then the read address is 0x51. note the change in address is immediate. remembered always default 0x50 4.3 changing the baud rate syntax hexadecimal 0xfe 0x39 [speed] decimal 254 57 [speed] ascii 254 9 [speed] parameters parameter length description speed 1 hex value corresponding to a baud rate. matrix orbital lcd0821 13
description this command sets the rs-232 port to the speci?e d [speed]. the change takes place immediately. [speed] is a single byte specifyin g the desired port speed. valid speeds are shown in the table below. the dis play module can be manually reset to 19,200 baud in the event of an e rror during transmission, including transmitting a value not li sted below, by setting the manual override jumper during power up. however , it should be noted that this command will be ignored until the manual ov erride jumper is removed again. hex value baud rate 53 1200 29 2400 cf 4800 67 9600 33 19200 22 28800 19 38400 10 57600 8 115200 note this command is not available in i 2 c mode. remembered always default 19,200 bps 4.4 setting a non-standard baud rate syntax hexadecimal 0xfe 0xa4 [speed] decimal 254 164 [speed] parameters parameter length description speed 2 inputed lsb msb from baud rate formula (12-2047). description this command sets the rs-232 port to a non-stand ard baud rate. the command accepts a two byte parameter that goes directly into the modules baud generator. use the formula, speed = crystalspeed 8 desiredbaud ? 1 to calculate the [speed] for any baud rate setting. the speed ca n be anywhere from 12 to 2047 which corresponds to a baud range of 9 77 to 153,800 baud. setting the baud rate out of this range could ca use the display to stop working properly and require the manual over ride jumper to be set. remembered always matrix orbital lcd0821 14
examples crystal speed 16 mhz desired baud 13,500 speed = crystalspeed 8 ? desiredbaud ? 1 speed = 148 . 15 ? 1 speed = 16 , 000 , 000 8 ? 13 , 500 ? 1 speed = 147 . 15 ? lsb = 0x93 (rounded) ? msb = 0x00 ? intended baud rate: 13,500 baud actual baud rate: 16 , 000 , 000 8 ( 147 + 1 ) = 13,514 percent difference: 0.1% notes ? results from the formula are rounded down to the nearest whol e number (i.e 73.07 = 73). ? this formula becomes less acurate as baud rates increase, du e to rounding. ? place the speed result backwards into the formula to receive the actual baud rate. ( baud = crystalspeed 8 ( speed + 1 ) ) ? the actual baud rate must be within 3% of the intended baud rat e for the device to communicate. notes ? this command is not available in i 2 c mode. 5 text 5.1 introduction the lcd0821 is an intelligent display module, designed to re duce the amount of code necessary to begin displaying data. this means that it is able to display all asc ii formated characters and strings that are sent to it, which are de?ned in the current character set. the disp lay module will begin displaying text at the top left corner of the display area, known as home, and continue t o print to the display as if it was a page on a typewriter. when the text reaches the bottom right row, it is able to automatically scroll all of the lines up and continue to display text, with the auto scroll option set to on. matrix orbital lcd0821 15
5.1.1 character set figure 16: european character set matrix orbital lcd0821 16
figure 17: japanese character set note the default font set for these units is japanese, save for the -wb color option. please consult the pcn pages at www.matrixorbital.ca or a sa les representative to con?rm font set availability. 5.1.2 control characters in addition to a full text set, the lcd0821 display supports t he following ascii control characters: 0x08 backspace 0x0c clear screen / new page 0x0d carriage return 0x0a line feed / new line matrix orbital lcd0821 17
5.2 auto scroll on syntax hexadecimal 0xfe 0x51 decimal 254 81 ascii 254 q description when auto scrolling is on, it causes the display to shift the entire display's contents up to make room for a new line of text when t he text reaches the end of the last row. remembered yes default on 5.3 auto scroll off syntax hexadecimal 0xfe 0x52 decimal 254 82 ascii 254 r description when auto scrolling is disabled the text will wr ap to the top left corner of the display area when the text reaches the end of last row. remembered yes 5.4 clear screen syntax hexadecimal 0xfe 0x58 decimal 254 88 ascii 254 x description this command will immediately clear all of the c ontents of the display. remembered no 5.5 changing the startup screen syntax hexadecimal 0xfe 0x40 decimal 254 64 ascii 254 @ description in order to change the text that is displayed by t he lcd0821 when it starts up simply send the command bytes 254 64 followed by the characters that you wish to display, starting from the top le ft. this command will automatically line wrap the characters that ar e sent to it. matrix orbital lcd0821 18
remembered yes 5.6 set auto line wrap on syntax hexadecimal 0xfe 0x43 decimal 254 67 ascii 254 c description enabling auto line wrap will allow the cursor to automatically wrap over to the next line when the current line is full. note line wraps may occur in the middle of a word. remembered yes 5.7 set auto line wrap off syntax hexadecimal 0xfe 0x44 decimal 254 68 ascii 254 d description disabling auto line wrap will allow you to chang e the line con?guration. the normally sequentional progression beco mes an alternating pattern. rather than moving from line 1 to 2 to 3, the display will write from line 1 to 3 to 2. for a two line display, this mea ns that a row's worth of characters written between the ?rst and secon d lines or after the second will not be displayed on the screen or wrappe d. the four line models will see only an alteration in line ?ow. remembered yes 5.8 set cursor position syntax hexadecimal 0xfe 0x47 [col] [row] decimal 254 71 [col] [row] ascii 254 g [col] [row] parameters parameter length description col 1 column row 1 row matrix orbital lcd0821 19
description this command will allow you to manually set the c ursor position, which controls the text insertion point, by specifying the [col] a nd [row] of the new proposed cursor position. note if the cursor position is set past the end of a line it will wrap to the beginning of the next line. remembered no 5.9 go home syntax hexadecimal 0xfe 0x48 decimal 254 72 ascii 254 h description this command will return the cursor to the top le ft corner of the display area, identi?ed as row one, column one. remembered no 5.10 move cursor back syntax hexadecimal 0xfe 0x4c decimal 254 76 ascii 254 l description this command will move the cursor back one space . if this command is sent when the cursor is at the home position the cursor will wr ap to the last row / column position if line wrap is on. sending this com mand will not effect the text displayed on the module, however any char acters that are sent will over write the current characters that are bein g displayed. remembered no 5.11 move cursor forward syntax hexadecimal 0xfe 0x4d decimal 254 77 ascii 254 m matrix orbital lcd0821 20
description this command will move the cursor forward one sp ace. if this command is sent when the cursor is at the bottom right positio n the cursor will wrap back to the home position if line wrap is on. s ending this command will not effect the text displayed on the module , however any characters that are sent will over write the current char acters that are being displayed. remembered no 5.12 underline cursor on syntax hexadecimal 0xfe 0x4a decimal 254 74 ascii 254 j description this command will cause the lcd0821 to display a n underline cursor at the current text insertion point. remembered yes 5.13 underline cursor off syntax hexadecimal 0xfe 0x4b decimal 254 75 ascii 254 k description this command will turn the the underline cursor off. remembered yes 5.14 blinking block cursor on syntax hexadecimal 0xfe 0x53 decimal 254 83 ascii 254 s description this command will cause the lcd0821 to display a block cursor at the current text insertion point. remembered yes 5.15 blinking block cursor off matrix orbital lcd0821 21
syntax hexadecimal 0xfe 0x54 decimal 254 84 ascii 254 t description this command will turn the block cursor off. remembered yes 6 special characters 6.1 introduction the lcd0821 has the ability to create four different sets of e ight custom characters and save them to internal banks of memory. each set of eight can be recalled fr om memory at any time, and selected characters can be written to the display screen. characters and sets can be created at any time, saved for later use, and displayed to the screen through the intuitive command struc ture described below. 6.2 creating a custom character syntax hexadecimal 0xfe 0x4e [refid] [data] decimal 254 78 [refid] [data] ascii 254 n [refid] [data] parameters parameter length description refid 1 character reference id (0-7). data 8 character data. matrix orbital lcd0821 22
description the lcd0821 allows for upta to eight custom de?n ed characters to be added onto the the character set. a custom character is a ?ve b y eight pixel matrix with each row represented by a byte value. for ex ample: custom character 'h' decimal hex 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 0 0 0 16 0x10 1 0 1 1 0 22 0x16 1 1 0 0 1 25 0x19 1 0 0 0 1 17 0x11 1 0 0 0 1 17 0x11 each bit value of one, in the table, represents an on pixel, wh ereas a value of zero represents a pixel that is turned off. therefore in or der to de?ne custom character 'h' you would send the command byte pre?x 25 4 fol- lowed by the command 78. next, you will have to select the memo ry location in which you wish to save the character in. the avail able mem- ory locations for this command are zero through to seven. aft er sending the memory location, or [refid], you may then send the eight b yte custom character data in sequence from the top to the bottom. once you have de?ned a custom character you may display it by s ending the display module the [refid]. for example if a custom chara cter was saved in position one, the command to display the custom char acter, at the current cursor position, would be simply to send the numb er one to the display module without quotes. remembered no 6.3 saving custom characters syntax hexadecimal 0xfe 0xc1 [bank] [id] [data] decimal 254 193 [bank] [id] [data] parameters parameter length description bank 1 memory bank to save to (0-4). id 1 character id (0-7) data 8 character de?nition matrix orbital lcd0821 23
description new to the lcd0821 has added ?ve non-volatile me mory banks for custom character storage. this is intended to allow you to cr eate your own custom bar graphs, medium/large numbers and startup scr een. however, each memory bank may be used to store a set of any eigh t custom characters; with the only provision being that memor y bank zero contains the characters that will be used in the startup scre en. by default the memory banks will be loaded as follows: [bank] description 0 startup screen characters. 1 horizontal bars 2 vertical bars 3 medium numbers in order to save new custom characters into a memory bank, fol low the same process as you would for creating a custom character, se e sec- tion 6.2 on page 22, only use 254 193 [bank number] before send ing the [id] and character [data]. remembered yes 6.4 loading custom characters syntax hexadecimal 0xfe 0xc0 [bank] decimal 254 192 [bank] parameters parameter length description bank 1 memory bank to save to (0-4). description this command is used to load the custom characte rs into the volatile memory so that they may be used. if custom bar graph or number characters are stored in the memory banks, this command may b e used instead of initializing the bar graph / number. to use this co mmand send the command bytes followed by the [bank] that contains the cu stom character data that you want to retrieve. remembered no 6.5 save startup screen custom characters syntax hexadecimal 0xfe 0xc2 [refid] [data] decimal 254 194 [refid] [data] parameters parameter length description refid 1 character reference id (0-7). data 8 character data. matrix orbital lcd0821 24
description using this command you may create the custom cha racters. that will be stored in memory bank zero, which will be used in the startup s creen. for more information about creating custom characters see section 6.2 on page 22 . notes ? changes only take place once the power has been cycled. ? this command is the same as sending cmd 254 / 193 / 0 / [id] / [dat a] remembered yes 6.6 initialize medium number syntax hexadecimal 0xfe 0x6d decimal 254 109 ascii 254 m description this command will load the default medium numbe r characters into the volatile memory. if you have stored your own custom medium nu mbers, use the 'load custom characters' command to load your custom character data into the volatile memory. this command will a llow you to use the 'place medium numbers' command. remembered no 6.7 place medium numbers syntax hexadecimal 0xfe 0x6f [row] [col] [digit] decimal 254 111 [row] [col] [digit] ascii 254 o [row] [col] [digit] parameters parameter length description row 1 the row number. col 1 the column number. digit 1 medium number to place (0-9). description this command will place a medium number (two col umns high) at the [row] and [col] speci?ed. note medium numbers must be initialized before this command is ex ecuted. remembered no matrix orbital lcd0821 25
6.8 initialize horizontal bar syntax hexadecimal 0xfe 0x68 decimal 254 104 ascii 254 h description this command will load the default horizontal b ar characters into the volatile memory. if you have stored your own custom horizont al bar data, use the 'load custom characters' command instead to lo ad your custom bar data into the volatile memory. this command will a llow you to use the 'place horizontal bar' command. remembered no 6.9 place horizontal bar graph syntax hexadecimal 0xfe 0x7c [col] [row] [dir] [length] decimal 254 124 [col] [row] [dir] [length] ascii 254 | [col] [row] [dir] [length] parameters parameter length description col 1 the column number. row 1 the row number. dir 1 the direction of the bar data (0 or 1). length 1 the length of the bar data. description this command will place a bar graph at [row], [co lumn]. a [dir] value of zero will cause the bar to go right, and one will cause the ba r to go left. the [length] is the size in pixels of the bar graph. notes ? horizontal bars must be initialized before this command is e xecuted. ? bar graphs may be one directional only. remembered no 6.10 initialize narrow vertical bar syntax hexadecimal 0xfe 0x73 decimal 254 115 ascii 254 s matrix orbital lcd0821 26
description this command will load the narrow vertical bar c haracters into the volatile memory. if you have stored your own custom vertical bar data, use the 'load custom characters' command instead to load you r custom bar data into the volatile memory. this command will a llow you to use the 'place vertical bar' command. note narrow bars have a width of two pixels. remembered no 6.11 initialize wide vertical bar syntax hexadecimal 0xfe 0x76 decimal 254 118 ascii 254 v description this command will load the wide vertical bar cha racters into the volatile memory. if you have stored your own custom vertical bar data, use the 'load custom characters' command instead to load your custo m bar data into the volatile memory. this command will allow you to use the 'place vertical bar' command. note wide bars have a width of ?ve pixels. remembered no 6.12 place vertical bar syntax hexadecimal 0xfe 0x3d [column] [length] decimal 254 61 [column] [length] ascii 254 = [column] [length] parameters parameter length description column 1 the column number. length 1 the length of the bar data. matrix orbital lcd0821 27
description this command will place a bar graph at the speci? ed [column] with the speci?ed [length]. the [length] is the size in pixels of the b ar graph. notes ? a vertical bar style must be initialized before this command is executed. ? bar graphs may be one directional only. remembered no 7 general purpose output 7.1 introduction general purpose outputs allow you to connect devices, such a s leds, to the lcd0821 and supply them with up to 20ma of current at 5v. the lcd0821 has 3 gpos which ar e software controlled, with functions to turn them on/off and set the power state for the next startu p. 7.2 general purpose output off syntax hexadecimal 0xfe 0x56 [num] decimal 254 86 [num] ascii 254 v [num] parameters parameter length description num 1 gpo number. description this command turns off general purpose output [ num]. note off means that the output is pulled high. remembered yes 7.3 general purpose output on syntax hexadecimal 0xfe 0x57 [num] decimal 254 87 [num] ascii 254 w [num] parameters parameter length description num 1 gpo number. matrix orbital lcd0821 28
description this command turns on general purpose output [n um]. the standard gpo's on the lcd0821 output 20ma of current at 5v. note on means the output is pulled low. remembered yes 7.4 set startup gpo state syntax hexadecimal 0xfe 0xc3 [num] [state] decimal 254 195 [num] [state] parameters parameter length description num 1 gpo number. state 1 startup state (0: off, 1: on) description this command will set the startup state for the g po on the next power up. a value of one will cause the gpo to be off on the next startu p while a value of one will cause the gpo to be on. note this command does not affect the current state of the gpo. remembered always 8 display functions 8.1 introduction the lcd0821 employs software controlled display settings, which allow for control over, clearing the screen, changing the brightness and contrast or setting tim ers for turning it on or off. the combination of these allow you complete software control over your display 's appearance. 8.2 display on syntax hexadecimal 0xfe 0x42 [min] decimal 254 66 [min] ascii 254 b [min] parameters parameter length description min 1 minutes before turning the display on (0 to 90). matrix orbital lcd0821 29
description this command turns the backlight on after the [m inutes] timer has expired, with a ninety minute maximum timer. a time of 0 speci ?es that the backlight should turn on immediately and stay on. when th is command is sent while the remember function is on, the timer w ill reset and begin after power up. remembered yes default 0 8.3 display off syntax hexadecimal 0xfe 0x46 decimal 254 70 ascii 254 f description this command turns the backlight off immediate ly. the backlight will remain off until a 'display on' command has been received. remembered yes 8.4 set brightness syntax hexadecimal 0xfe 0x99 [brightness] decimal 254 153 [brightness] parameters parameter length description brightness 1 display brightness setting (0 to 255). description this command sets the display [brightness]. if the remember function is on, this command acts the same as 'set and save brightness'. remembered yes default 255 8.5 set and save brightness syntax hexadecimal 0xfe 0x98 [brightness] decimal 254 152 [brightness] parameters parameter length description brightness 1 backlight setting (0 to 255). description this command sets and saves the display [bright ness] as default. remembered always matrix orbital lcd0821 30
8.6 set contrast syntax hexadecimal 0xfe 0x50 [contrast] decimal 254 80 [contrast] ascii 254 p [contrast] parameters parameter length description contrast 1 contrast value (0 to 255). description this command sets the display's contrast to [co ntrast], where [contrast] is a value between 0x00 and 0xff (between 0 to 255). lower valu es cause `on' elements in the display area to appear lighter, wh ile higher values cause `on' elements to appear darker. lighting and te mperature conditions will affect the actual value used for optimal vie wing. individual display modules will also differ slightly from e ach other in appearance. in addition, values for optimal viewing while t he display backlight is on may differ from values used when backlight is off. this command does not save the [contrast] value, and is lost a fter power down; but this command has the option of remembering the sett ings when issued with the remember function `on' . when this is the case, this command is the same as the set and save contrast command. note this command has only 32 levels for x-board based displays, m eaning eight contrast settings will have the same single effect. efectiv ely, values 0 through 7, 8 through 15, and so on will result in the same setting. remembered yes default 128 8.7 set and save contrast syntax hexadecimal 0xfe 0x91 [contrast] decimal 254 145 [contrast] parameters parameter length description contrast 1 contrast value (0 to 255). matrix orbital lcd0821 31
description this command sets the display's contrast to [co ntrast], where [contrast] is a value between 0x00 and 0xff (between 0 to 255). lower valu es cause `on' elements in the display area to appear lighter, wh ile higher values cause `on' elements to appear darker. lighting condi tions will affect the actual value used for optimal viewing. individua l display modules will also differ slightly from each other in appeara nce. in addition, values for optimal viewing while the display back light is on may differ from values used when backlight is off. note this command saves the [contrast] value so that it is not lost after power down. remembered yes default 128 9 data security 9.1 introduction ensuring that your lcd0821 display's exactly what you want i t to can be the difference between a projects success and failure. this is why we incorporate fea tures such as data lock into the lcd0821 with this new feature you now are in control over of how and when set tings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up. 9.2 set remember syntax hexadecimal 0xfe 0x93 [switch] decimal 254 147 [switch] parameters parameter length description switch 1 0: do not remember, 1: remember matrix orbital lcd0821 32
description this command allows you to switch the remember f unction on and off. to use the remember function, set remember to on, then set all of the settings that you wish to save, settings that are listed as 'r emember: yes' support being saved into the non-volatile memory. afte r you have set all of the commands that you wish to save, you may then cycl e the power and check the display settings to ensure that all the se ttings have been saved. if you wish to use remember again after cycling th e power, you must set it to on again. notes ? writing to non-volatile memory is time consuming and slows d own the operation of the display. ? non-volatile memory has a `write limit' and may only be chang ed approximately 100,000 times. remembered no default do not remember 9.3 data lock syntax hexadecimal 0xfe 0xca 0xf5 0xa0 [level] decimal 254 202 245 160 [level] parameters parameter length description level 1 sets the data lock level matrix orbital lcd0821 33
description paranoia allows you to lock the module from displaying infor mation, as well as enables the protection of the ?lesystem and module se ttings. each bit corresponds corresponds to a different lock level, while sending a zero will unlock your display as the following tabl es explains: bit data lock level description 0-2 reserved should be left 0 3 communication speed lock when this bit is set (1) the baud rate and i 2 c slave address are locked 4 setting lock when this bit is set (1) the display settings such as backlight, contrast and gpo settings are locked. (internal eeprom) 5 reserved should be left 0 6 command lock when this bit is set (1) all commands but commands 202/203 are locked. (cmd lock) 7 display lock when this bit is set (1) the module is locked from dis- playing any new informa- tion. (text lock) notes ? sending a new data lock level will override the previous data lock level. ? data lock levels may be combined. remembered always default 0 examples hex dec binary description 0x00 0 0 unlock 0x50 80 01010000 setting and command lock 9.4 set and save data lock syntax hexadecimal 0xfe 0xcb 0xf5 0xa0 [level] decimal 254 203 245 160 [level] matrix orbital lcd0821 34
parameters parameter length description level 1 sets the data lock level description this command will set and save the data lock leve l. see the data lock section for more information. remembered always default 0 9.5 write customer data syntax hexadecimal 0xfe 0x34 [data] decimal 254 52 [data] ascii 254 4 [data] parameters parameter length description data 16 writes the customer data description writes the customer data. 16 bytes of data can be saved in non-volatile memory. remembered no 9.6 read customer data syntax hexadecimal 0xfe 0x35 decimal 254 53 ascii 254 5 description reads whatever was written by write customer da ta. remembered no 10 miscellaneous 10.1 introduction this chapter covers the 'report version number' and 'read mo dule type' commands. these commands can be particularly useful to ?nd out more information about the display module before contacting technical support. 10.2 read version number matrix orbital lcd0821 35
syntax hexadecimal 0xfe 0x36 decimal 254 54 ascii 254 6 description this command will return a byte representing th e version of the module, see the following table as an example: hex value version number 0x19 version 1.9 0x57 version 5.7 remembered no 10.3 read module type syntax hexadecimal 0xfe 0x37 decimal 254 55 ascii 254 7 matrix orbital lcd0821 36
description this command will return a hex value correspond ing to the the model number of the module see the following table: hex product id hex product id 1 lcd0821 2 lcd2021 5 lcd2041 6 lcd4021 7 lcd4041 8 lk202-25 9 lk204-25 a lk404-55 b vfd2021 c vfd2041 d vfd4021 e vk202-25 f vk204-25 10 glc12232 13 glc24064 14 unused 15 glk24064-25 16 unused 21 unused 22 glk12232-25 23 unused 24 glk12232-25-sm 25 glk24064-16-1u-usb 26 glk24064-16-1u 27 glk19264-7t-1u-usb 28 glk12232-16 29 glk12232-16-sm 2a glk19264-7t-1u 2b lk204-7t-1u 2c lk204-7t-1u-usb 31 lk404-at 32 mos-av-162a 33 lk402-12 34 lk162-12 35 lk204-25pc 36 lk202-24-usb 37 vk202-24-usb 38 lk204-24-usb 39 vk204-24-usb 3a pk162-12 3b vk162-12 3c mos-ap-162a 3d pk202-25 3e mos-al-162a 3f mos-al-202a 40 mos-av-202a 41 mos-ap-202a 42 pk202-24-usb 43 mos-al-082 44 mos-al-204 45 mos-av-204 46 mos-al-402 47 mos-av-402 48 lk082-12 49 vk402-12 4a vk404-55 4b lk402-25 4c vk402-25 4d pk204-25 4e unused 4f mos 50 moi 51 xboard-s 52 xboard-i 53 mou 54 xboard-u 55 lk202-25-usb 56 vk202-25-usb 57 lk204-25-usb 58 vk204-25-usb 5b lk162-12-tc 5c unused 71 unused 72 glk240128-25 73 lk404-25 74 vk404-25 77 unused 78 glt320240 79 glt480282 7a glt240128 remembered no matrix orbital lcd0821 37
11 command summary 11.1 communications description syntax page changing the i 2 c slave address hexadecimal 0xfe 0x33 [adr] decimal 254 51 [adr] ascii 254 3 [adr] 13 changing the baud rate hexadecimal 0xfe 0x39 [speed] decimal 254 57 [speed] ascii 254 9 [speed] 13 setting a non-standard baud rate hexadecimal 0xfe 0xa4 [speed] decimal 254 164 [speed] 14 11.2 text description syntax page auto scroll on hexadecimal 0xfe 0x51 decimal 254 81 ascii 254 q 18 auto scroll off hexadecimal 0xfe 0x52 decimal 254 82 ascii 254 r 18 clear screen hexadecimal 0xfe 0x58 decimal 254 88 ascii 254 x 18 changing the startup screen hexadecimal 0xfe 0x40 decimal 254 64 ascii 254 @ 18 set auto line wrap on hexadecimal 0xfe 0x43 decimal 254 67 ascii 254 c 19 set auto line wrap off hexadecimal 0xfe 0x44 decimal 254 68 ascii 254 d 19 set cursor position hexadecimal 0xfe 0x47 [col] [row] decimal 254 71 [col] [row] ascii 254 g [col] [row] 19 go home hexadecimal 0xfe 0x48 decimal 254 72 ascii 254 h 20 matrix orbital lcd0821 38
description syntax page move cursor back hexadecimal 0xfe 0x4c decimal 254 76 ascii 254 l 20 move cursor forward hexadecimal 0xfe 0x4d decimal 254 77 ascii 254 m 20 underline cursor on hexadecimal 0xfe 0x4a decimal 254 74 ascii 254 j 21 underline cursor off hexadecimal 0xfe 0x4b decimal 254 75 ascii 254 k 21 blinking block cursor on hexadecimal 0xfe 0x53 decimal 254 83 ascii 254 s 21 blinking block cursor off hexadecimal 0xfe 0x54 decimal 254 84 ascii 254 t 21 11.3 special characters description syntax page creating a custom character hexadecimal 0xfe 0x4e [refid] [data] decimal 254 78 [refid] [data] ascii 254 n [refid] [data] 22 saving custom characters hexadecimal 0xfe 0xc1 [bank] [id] [data] decimal 254 193 [bank] [id] [data] 23 loading custom characters hexadecimal 0xfe 0xc0 [bank] decimal 254 192 [bank] 24 save startup screen custom characters hexadecimal 0xfe 0xc2 [refid] [data] decimal 254 194 [refid] [data] 24 initialize medium number hexadecimal 0xfe 0x6d decimal 254 109 ascii 254 m 25 place medium numbers hexadecimal 0xfe 0x6f [row] [col] [digit] decimal 254 111 [row] [col] [digit] ascii 254 o [row] [col] [digit] 25 initialize horizontal bar hexadecimal 0xfe 0x68 decimal 254 104 ascii 254 h 26 place horizontal bar graph hexadecimal 0xfe 0x7c [col] [row] [dir] [length] decimal 254 124 [col] [row] [dir] [length] ascii 254 | [col] [row] [dir] [length] 26 matrix orbital lcd0821 39
description syntax page initialize narrow vertical bar hexadecimal 0xfe 0x73 decimal 254 115 ascii 254 s 26 initialize wide vertical bar hexadecimal 0xfe 0x76 decimal 254 118 ascii 254 v 27 place vertical bar hexadecimal 0xfe 0x3d [column] [length] decimal 254 61 [column] [length] ascii 254 = [column] [length] 27 11.4 general purpose output description syntax page general purpose output off hexadecimal 0xfe 0x56 [num] decimal 254 86 [num] ascii 254 v [num] 28 general purpose output on hexadecimal 0xfe 0x57 [num] decimal 254 87 [num] ascii 254 w [num] 28 set startup gpo state hexadecimal 0xfe 0xc3 [num] [state] decimal 254 195 [num] [state] 29 11.5 display functions description syntax page display on hexadecimal 0xfe 0x42 [min] decimal 254 66 [min] ascii 254 b [min] 29 display off hexadecimal 0xfe 0x46 decimal 254 70 ascii 254 f 30 set brightness hexadecimal 0xfe 0x99 [brightness] decimal 254 153 [brightness] 30 set and save brightness hexadecimal 0xfe 0x98 [brightness] decimal 254 152 [brightness] 30 set contrast hexadecimal 0xfe 0x50 [contrast] decimal 254 80 [contrast] ascii 254 p [contrast] 31 set and save contrast hexadecimal 0xfe 0x91 [contrast] decimal 254 145 [contrast] 31 matrix orbital lcd0821 40
11.6 data security description syntax page set remember hexadecimal 0xfe 0x93 [switch] decimal 254 147 [switch] 32 data lock hexadecimal 0xfe 0xca 0xf5 0xa0 [level] decimal 254 202 245 160 [level] 33 set and save data lock hexadecimal 0xfe 0xcb 0xf5 0xa0 [level] decimal 254 203 245 160 [level] 34 write customer data hexadecimal 0xfe 0x34 [data] decimal 254 52 [data] ascii 254 4 [data] 35 read customer data hexadecimal 0xfe 0x35 decimal 254 53 ascii 254 5 35 11.7 miscellaneous description syntax page read version number hexadecimal 0xfe 0x36 decimal 254 54 ascii 254 6 35 read module type hexadecimal 0xfe 0x37 decimal 254 55 ascii 254 7 36 11.8 command by number command description page hex dec ascii 0x33 51 3 changing the i 2 c slave address 13 0x34 52 4 write customer data 35 0x35 53 5 read customer data 35 0x36 54 6 read version number 35 0x37 55 7 read module type 36 0x39 57 9 changing the baud rate 13 0x3d 61 = place vertical bar 27 0x40 64 @ changing the startup screen 18 0x42 66 b display on 29 0x43 67 c set auto line wrap on 19 0x44 68 d set auto line wrap off 19 0x46 70 f display off 30 matrix orbital lcd0821 41
command description page hex dec ascii 0x47 71 g set cursor position 19 0x48 72 h go home 20 0x4a 74 j underline cursor on 21 0x4b 75 k underline cursor off 21 0x4c 76 l move cursor back 20 0x4d 77 m move cursor forward 20 0x4e 78 n creating a custom character 22 0x50 80 p set contrast 31 0x51 81 q auto scroll on 18 0x52 82 r auto scroll off 18 0x53 83 s blinking block cursor on 21 0x54 84 t blinking block cursor off 21 0x56 86 v general purpose output off 28 0x57 87 w general purpose output on 28 0x58 88 x clear screen 18 0x68 104 h initialize horizontal bar 26 0x6d 109 m initialize medium number 25 0x6f 111 o place medium numbers 25 0x73 115 s initialize narrow vertical bar 26 0x76 118 v initialize wide vertical bar 27 0x7c 124 | place horizontal bar graph 26 0x91 145 set and save contrast 31 0x93 147 set remember 32 0x98 152 set and save brightness 30 0x99 153 set brightness 30 0xa4 164 setting a non-standard baud rate 14 0xc0 192 loading custom characters 24 0xc1 193 saving custom characters 23 0xc2 194 save startup screen custom characters 24 0xc3 195 set startup gpo state 29 matrix orbital lcd0821 42
12 appendix 12.1 speci?cations 12.1.1 environmental table 56: environmental speci?cations standard temperature extended temperature operating temperature 0 ? c to +50 ? c -20 ? c to +70 ? c storage temperature -20 ? c to +70 ? c -30 ? c to +80 ? c operating relative humidity 90% max non-condensing vibration (operating) 4.9 m/s 2 xyz directions vibration (non-operating) 19.6 m/s 2 xyz directions shock (operating) 29.4 m/s 2 xyz directions shock (non-operating) 490 m/s 2 xyz directions 12.1.2 electrical table 57: electrical speci?cations standard wide voltage (v) supply voltage +5vdc 0.25v +9v to +15v minimum current 45ma typical backlight on (yg & iy) add 65ma (110ma) typical backlight on (r) add 60ma (105ma) typical backlight on (gw & wb) add 20ma (65ma) typical 12.1.3 optical table 58: optical speci?cations character x lines 8 columns x 2 rows module size 58.00mm x 32.00mm x 26.80mm character size 2.96mm x 5.56mm display size 27.80mm x 11.49mm led backlight half-life (yg & iy) 50, 000 hours typical led backlight half-life (r) 20, 000 hours typical led backlight half-life (gw & wb) 10, 000 hours typical matrix orbital lcd0821 43
note to prolong life, it is recommended that the backlight be turn ed off when the display is not in use. 12.2 physical layout matrix orbital lcd0821 44
figure 18: physical diagram matrix orbital lcd0821 45
12.3 ordering information lcd 08 2 1 -r -v -e 1 2 3 4 5 6 7 table 59: part numbering scheme # description options 1 screen type lcd: liquid crystal display 2 width 08: eight character columns 3 height 2: two character rows 4 gpo 1: single gpo 5 color (text/background) np: standard grey/yellow-green gw: grey/white wb: white/blue r: red/black iy: yellow/black 6 input voltage np: standard (4.75-5.25v) -v: extended volatge (9.00-15.0v) 7 temperature np: standard (0 ? c to +50 ? c) -e: extended temperature (-20 ? c to +70 ? c) table 60: part options 12.4 de?nitions e extended temperature (-20c to 70c) v wide voltage (+9 to +15vdc) gw grey text / white background wb white text / blue background r inverse red iy inverse yellow msb most signi?cant byte lsb least signi?cant byte matrix orbital lcd0821 46
12.5 contacting matrix orbital telephone sales: 1(403)229-2737 support: 1(403)204-3750 on the web sales: http://www.matrixorbital.com support: http://www.matrixorbital.ca forums: http://www.lcdforums.com 12.6 revision history table 61: revision history revision description author 2.0 initial manual matrix orbital 2.1 updated backlight life clark matrix orbital lcd0821 47


▲Up To Search▲   

 
Price & Availability of LCD2041-IY

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X